from flask import Flask, request

app = Flask(__name__)


@app.route('/')
def hello_world():  # put application's code here
    return 'Hello World!'


@app.route('/v1/chat/completion', methods=['GET'])
def chat_completion():
    name = request.args.get('name', '匿名')
    return f"你好，{name}！"


if __name__ == '__main__':
    app.run()
